import request from '@/utils/request'
//获取栏目列表数据
export const getCategoryAPI=()=>{
    return request({
        method:'GET',
        url:'/category',
        //调用完成后获取
        
    })
}

//添加栏目
export const addCategoryAPI=(data)=>{
    return request({
        method:'POST',
        url:'/category',
        //调用完成后获取
        data:data,
    })
}
